{% extends "base.html" %}
{% load url from future %}

{% block content %}

{% if form.errors %}
	<p>Tên hoặc mật khẩu không đúng.</p>
{% endif %}

<form method="post" action=".">
{% csrf_token %}
<table style="align:center">
<tr>
    <td>{{ form.username.label_tag }}</td>
    <td>{{ form.username }}</td>
</tr>
<tr>
    <td>{{ form.password.label_tag }}</td>
    <td>{{ form.password }}</td>
</tr>
</table>

<input class="btn btn-primary" type="submit" value="login" />
<input type="hidden" name="next" value="{{ next }}" />
</form>

{% endblock %}
